﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.Composition;
using System.ComponentModel.Composition.Hosting;
using System.Reflection;
using AppMain;

namespace Tree
{
    public class Root
    {
        [Import("MDIParent")]
        public MDIParent1 MDIParent { get; set; }

        public Root()
        {
            var catalog = new AssemblyCatalog(Assembly.GetExecutingAssembly());
            var container = new CompositionContainer();
            container.Compose(this, new MDIParent1());


        }
    }
}
